import { $rp } from '@/utils/constants';
import SpaceIssues from '@/views/issues/index';
import IssuesCreate from '@/views/issues/create';
import IssuesShow from '@/views/issues/show';
import IssuesUpdate from '@/components/spaces/issues/Update';
import SpaceIssuesSearch from '@/components/spaces/issues/search';

export default [
  {
    path: $rp.SPACE_ISSUES,
    component: SpaceIssues,
  },
  {
    path: $rp.SPACE_ISSUES_SEARCH,
    component: SpaceIssuesSearch,
  },
  {
    path: `${$rp.SPACE_ISSUES}/${$rp.CREATE}`,
    component: IssuesCreate,
    meta: { requireAuth: true },
  },
  {
    path: `${$rp.SPACE_ISSUES}/:issueId`,
    component: IssuesShow,
  },
  {
    path: `${$rp.SPACE_ISSUES}/:issueId/${$rp.UPDATE}`,
    component: IssuesUpdate,
    meta: { requireAuth: true },
  },
];
